<?php

include_once 'cfg/def.php';
include_once 'cfg/cfg.php';
include_once 'lib/logger.class.php';
include_once 'ctrl/page_importer.class.php';

Logger::$log_file = $log_imp_name;

$ip = $_SERVER['HTTP_HOST'];
if($ip == 'localhost' || $ip == '127.0.0.1' || $ip == '94.242.15.62')
{
	// $data = $HTTP_RAW_POST_DATA;
	$data = $_POST['xml'];
	Logger::Write(__FILE__." line ".__LINE__, 'RAW DATA: '.$data);
	cImporter::Parse($data);
}
else 
{
	echo "Hi! How are you?";
}

